package com.hualan.sfzy.mapper.course;

import com.hualan.sfzy.entity.Course;
import com.hualan.sfzy.entity.SkilledFiled;
import com.hualan.sfzy.mapper.BaseMapper;
import com.hualan.sfzy.vo.CourseVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author LENOVO
* @description 针对表【course】的数据库操作Mapper
* @createDate 2025-07-16 21:21:38
* @Entity dao.Course
*/
@Mapper
public interface CourseMapper extends BaseMapper<Course> {

    int insert(Course course);

    int update(Course course);

    int delete(Integer id);

    int deleteBatch(Integer[] ids);

    List<Course> select(Course course);

    Course selectById(Integer id);

    List<Course> selectAll();

    List<CourseVo> selectVo(CourseVo courseVo);

    int insertVo(CourseVo courseVo);

    int updateVo(CourseVo courseVo);

    List<SkilledFiled> selectFiled();

    Integer[] selectCounselor(Integer skillId);

    int updateStudyNum(Integer courseId, Integer num);
}
